<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./demo.js"></script>
    <!-- 3.外部引入 -->
    <script src="demo.js"></script>
    <script src="./demo.js"></script>
</head>
<body>
       <h3>js是负责逻辑处理的,比如请求数据</h3>


       <!-- 1.书写js位置 -->
       <script>
             alert ('卸载电脑');
             alert('卸载成功');
       </script>
       <!-- 2.行内式 -->
       <input type="button" value="点击轰炸" onclick="alert('轰炸成功')">

       <!-- 1.书写js位置 -->
       <script>
        alert('零卡零脂');
        alert('我信你个鬼哟');
       </script>
       <!-- 2.行内式 -->
       <input type="text" placeholder="毁灭吧" onclick="alert('我不累')">

       <!-- 1.书写js位置 -->
          <script>
            alert('床前明月光');
            alert('疑似毒鸡汤');
          </script>
       <!-- 2.行内式 -->
       <input type="radio" onclick="alert('是男是女心里没点数吗')" name="sex">男
       <input type="radio" onclick="alert('你确定')" name="sex">女
</body>
</html>